using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.IO;

namespace SampleCSharpApp
{
	/// <summary>
	/// Summary description for Form1.
	/// </summary>
	public class Form1 : System.Windows.Forms.Form
	{
        private Camalon.Drawing.Samples.CSharp.Diamond diamond;
		private Camalon.Drawing.ShapeControl shapeControl2;

		public Form1()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();


			//this.SetStyle( ControlStyles.DoubleBuffer|ControlStyles.ResizeRedraw, true);
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
            this.shapeControl2 = new Camalon.Drawing.ShapeControl();
            this.diamond = new Camalon.Drawing.Samples.CSharp.Diamond();
            ((System.ComponentModel.ISupportInitialize)(this.shapeControl2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.diamond)).BeginInit();
            this.SuspendLayout();
            // 
            // shapeControl2
            // 
            this.shapeControl2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.shapeControl2.BackColor = System.Drawing.Color.SandyBrown;
            this.shapeControl2.Location = new System.Drawing.Point(57, 44);
            this.shapeControl2.Name = "shapeControl2";
            this.shapeControl2.ScalingResize = true;
            this.shapeControl2.ScalingResizeBase = new System.Drawing.Size(480, 420);
            this.shapeControl2.Shape = this.diamond;
            this.shapeControl2.Size = new System.Drawing.Size(422, 428);
            this.shapeControl2.TabIndex = 3;
            this.shapeControl2.Text = "shapeControl2";
            // 
            // diamond
            // 
            this.diamond.PaintChildsOnly = true;
            this.diamond.Position = new System.Drawing.Point(20, 20);
            this.diamond.Size = new System.Drawing.Size(440, 380);
            this.diamond.Status = 2;
            // 
            // Form1
            // 
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.AutoScroll = true;
            this.BackColor = System.Drawing.SystemColors.Control;
            this.ClientSize = new System.Drawing.Size(552, 539);
            this.Controls.Add(this.shapeControl2);
            this.Name = "Form1";
            this.Text = "Form1";
            this.Load += new System.EventHandler(this.Form1_Load);
            ((System.ComponentModel.ISupportInitialize)(this.shapeControl2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.diamond)).EndInit();
            this.ResumeLayout(false);

		}
		#endregion

		protected override void OnLoad(EventArgs e)
		{
			base.OnLoad (e);
		}

		private void Form1_Load(object sender, System.EventArgs e)
		{
//			Camalon.Drawing.Shapes.Diamond diamond = new Camalon.Drawing.Shapes.Diamond();
//			Camalon.Drawing.ShapeControl shapeCtrl = new Camalon.Drawing.ShapeControl();
//			
//			diamond.PaintChildsOnly = true;
//			diamond.Position = new Point(0,0);
//
//			shapeCtrl.Shape = diamond;
//			shapeCtrl.Clip = true;
//
//			shapeCtrl.Size = diamond.Size;
//			shapeCtrl.ScalingResize = true;
//			shapeCtrl.Size = new Size(200,200);
//			shapeCtrl.Location = new Point( 50,50);
//
//			this.Controls.Add( shapeCtrl);
//
//			shapeCtrl.BringToFront();
		}







	}



}
